package model.simulation;

import model.AbstractDepartment;

//B级单位
public class SiBDepartment extends SiDepartment
{
	 String aName;

	 String bName;

	public SiBDepartment(SiCDepartment cDepartment)
	{
		this.aName = cDepartment.aName;
		this.bName = cDepartment.bName;
	}

	@Override
	public boolean hasSubDepartment() {return true;}

	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		SiCDepartment cDepartment=(SiCDepartment)department;
		return aName.equals(cDepartment.aName) && bName.equals(cDepartment.bName);
	}

	@Override
	public String departmentName()
	{
		return aName + bName;
	}
}
